#pragma once
#include "DataStructure/Common/Id.h"
#include "DataStructure/Common/Real.h"

SG_DATASTRUCTURE_POST_NAMESPACE_OPEN

struct BUSHStrainData
{
    SG::DataStructure::Common::Id   m_eId      = 0;    /// Element identification number
    SG::DataStructure::Common::Real m_TX       = 0.0;  /// Shear  force  in x
    SG::DataStructure::Common::Real m_TY       = 0.0;  /// Shear  force  in y
    SG::DataStructure::Common::Real m_TZ       = 0.0;  /// Translation z
    SG::DataStructure::Common::Real m_RX       = 0.0;  /// Rotation    x
    SG::DataStructure::Common::Real m_RY       = 0.0;  /// Rotation    y
    SG::DataStructure::Common::Real m_RZ       = 0.0;  /// Rotation    z
    SG::DataStructure::Common::Id   m_domainId = 0;    /// Domain identifier
};

///< @brief 判断数据是否相等
DECLSPEC bool operator== (const BUSHStrainData& val1, const BUSHStrainData& val2);

///< @brief 排序使用
DECLSPEC bool operator< (const BUSHStrainData& a, const BUSHStrainData& b);

SG_DATASTRUCTURE_POST_NAMESPACE_CLOSE
